package com.test.rpc;

import com.test.rpc.protocol.Peer;
import com.test.rpc.transport.TransportClient;

import java.util.List;

public interface TransportSelector {
    void init(List<Peer> peers, int count, Class<? extends TransportClient> clazz);

    //选择一个transport与server交互
    TransportClient select();

    //释放用完的client
    void release(TransportClient client);

    void close();
}
